'use strict';
/**
 * Created by xgjiang on 2015-10-15.
 */

define([
        'angular',
        'app/modules/users/define',
        'app/modules/users/services/users'
    ],
    function(angular) {
        angular.module('ad.users')
            .controller('adUsersDeleteController',['$scope','$uibModalInstance','adUsersService','items',function($scope,$uibModalInstance,service,items) {
                $scope.items = items;
                $scope.ok = function () {
                    service.deleteItems($scope.items).then(function(data){
                        $uibModalInstance.close(data);
                    });
                };
                $scope.cancel = function () {
                    $uibModalInstance.dismiss('cancel');
                };
            }]);
    });
